package com.remoter.basic.bean.support;

import com.remoter.basic.bean.AbstractModule;
import com.remoter.basic.util.Final;

/**
 * @author			koko
 * @date 			2017-08-08 14:18:35
 * @description 	类功能说明
 */
public class ProviderModule extends AbstractModule{

	private static final long serialVersionUID = 2025597354713609719L;
	
	private int weight = Final.D_VAL_PROVIDER_WEIGHT;
	private int executes = Final.D_VAL_PROVIDER_EXECUTE;
	private long startTime;
	private transient Object instance;
	
	public Object getInstance() {
		return instance;
	}
	public void setInstance(Object instance) {
		this.instance = instance;
	}
	
	@Override
	public boolean isProvider() {
		return true;
	}

	@Override
	public boolean isConsumer() {
		return false;
	}
	public int getWeight() {
		return weight;
	}
	public void setWeight(int weight) {
		this.weight = weight;
	}
	public long getStartTime() {
		return startTime;
	}
	public void setStartTime(long startTime) {
		this.startTime = startTime;
	}
	public int getExecutes() {
		return executes;
	}
	public void setExecutes(int executes) {
		this.executes = executes;
	}
}